home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / c / ctab.lzh / CTab / CTab.Doc < prev    next >
Text File  |  1992-05-13  |  3KB  |  129 lines

  1. CTab V1.40 Manual
  2. =================
  3.  
  4. Copyright:
  5. ----------
  6. (c) 1991 Alexander Rawass
  7.  
  8. Alexander Rawass
  9. Wilhelminenstraße 44
  10. 6700 Ludwigshafen 15
  11. Germany
  12. 0621/57 75 98
  13.  
  14. E-Mail: rawass@sun.rhrk.uni-kl.de
  15.  
  16.  
  17. CTab is ShareWare and freely distributable.
  18. That means, CTab may be freely distributed, copied, pushed in FTP-servers
  19. and included on some PD/FD-series (like Fish, TBAG, Tornado, etc.),
  20. as long as no profit is made for the distributor.
  21. The program, the source-code and the (sub-) routines remain copyright by
  22. the author (Alexander Rawass).
  23.  
  24. If you use CTab regularly (and you will, of course) then you'll have to
  25. send DM 5 (Deutschmark, if you live in EEC) or US$ 5 (if you live in the
  26. rest of the world) to the above address.
  27. You will then become a registered user and will receive the latest versions
  28. of CTab per disk.
  29.  
  30. Using CTab without being registered is both illegal and immoral!
  31.  
  32.  
  33.  
  34. What is CTab for?
  35. -----------------
  36.  
  37. CTab is an utility to format C-Source-Codes, to give them a neater
  38. appearance and to make them more easily to read and comprehend.
  39.  
  40. It insert (depending on the number of open '{' brackets) the needed number
  41. of tabs in the text, thus making the program more structured and easy to
  42. read.
  43.  
  44. CTab is very useful if you have written your program and then changed it a
  45. little bit, maybe by including some more 'if','while' or 'for'-cases in the
  46. text.
  47.  
  48.  
  49. Usage of CTab
  50. -------------
  51.  
  52. Usage :    CTab <filename> [SPC n]
  53.  
  54.     <filename> is the name of the C-source-code to format
  55.     the formatted file is written to <filename>.ct
  56.  
  57. If you call CTab with the 'SPC n' option, CTab inserts n spaces into the
  58. text instead of one single tab (so 'SPC 8' would give your source-code the
  59. same appearance as without the 'SPC'-option.
  60.  
  61.  
  62. Compilation & Konfiguration :
  63. -----------------------------
  64.  
  65. CTab should work on every Amiga with Kickstart V1.2 or higher.
  66.  
  67. CTab was developed on an Amiga 500 with Kick 1.2 and 1Mb RAM.
  68. It was compiled using Manx Aztec C V5.0a.
  69.  
  70. Compiler    : cc ctab -bs -qv -mdons -so
  71. Linker        : ln ctab -lc
  72.  
  73.  
  74. Example :
  75. ---------
  76.  
  77. VOID main(){
  78. int i;
  79. for(i=0;i<80;i++){
  80. printf("CTAB\n");
  81. if(i==40){ printf("Halbzeit\n"); }
  82. }
  83. Exit(NULL);
  84. }
  85.  
  86.  
  87. will become :
  88.  
  89.  
  90. VOID main(){
  91.     int i;
  92.     for(i=0;i<80;i++){
  93.         printf("CTAB\n");
  94.         if(i==40){
  95.             printf("Halbzeit\n");
  96.         }
  97.     }
  98.     Exit(NULL);
  99. }
  100.  
  101.  
  102. Distribution
  103. ------------
  104.  
  105. CTab is freely distributable ShareWare.
  106.  
  107. You can copy it as you want, as long as you make no profit from copying.
  108. That means, a disk with CTab on it should not cost more than ca. 3 DM,
  109. which is about US$ 3.
  110.  
  111. It would be great if CTab would be included on some FD-series, like
  112. Fish, TBAG, Franz, AUGE, Tornado, etc.
  113.  
  114. Spread CTab as you can, push it in every FTP-server and in every net
  115. you can find, put it in your local mailbox and be happy with it.
  116.  
  117. But, of course, you may only distribute the COMPLETE CTab.
  118. CTab consists of the following files :
  119.  
  120.     CTab        - the program
  121.     CTab.Doc    - this documentation
  122.     CTab.ReadMe    - a short readme file
  123.     CTab.Vertrieb    - for german eyes only
  124.     CTab.c        - the source code
  125.  
  126. If any of the files are missing, CTab may no longer be distributed!
  127.  
  128. German distributors, read CTab.Vertrieb!
  129.